home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / INCLUDE.ZIP / SCHED.H < prev    next >
Text File  |  1996-02-20  |  7KB  |  129 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*                Scheduler definitions used in BinkleyTerm                 */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. /* Definitions for day of the week */
  45.  
  46. #define DAY_SUNDAY        0x01
  47. #define DAY_MONDAY        0x02
  48. #define DAY_TUESDAY        0x04
  49. #define DAY_WEDNESDAY    0x08
  50. #define DAY_THURSDAY    0x10
  51. #define DAY_FRIDAY        0x20
  52. #define DAY_SATURDAY    0x40
  53. #define DAY_UNUSED        0x80
  54.  
  55. #define DAY_WEEK    (DAY_MONDAY|DAY_TUESDAY|DAY_WEDNESDAY|DAY_THURSDAY|DAY_FRIDAY)
  56. #define DAY_WKEND    (DAY_SUNDAY|DAY_SATURDAY)
  57.  
  58. /* Definitions for matrix behavior */
  59.  
  60. #define MAT_CM            0x0001
  61. #define MAT_DYNAM        0x0002
  62. #define MAT_BBS            0x0004
  63. #define MAT_NOREQ        0x0008
  64. #define MAT_OUTONLY        0x0010
  65. #define MAT_NOOUT        0x0020
  66. #define MAT_FORCED        0x0040
  67. #define MAT_LOCAL        0x0080
  68. #define MAT_SKIP        0x0100
  69. #define MAT_NOMAIL24    0x0200
  70. #define MAT_NOOUTREQ    0x0400
  71. #define MAT_NOCM        0x0800
  72. #define MAT_HIPRICM        0x1000
  73. #define MAT_KILLBAD        0x2000    /* Kill *.$$? packets */
  74. #define MAT_RESERVED3    0x4000
  75. #define MAT_RESERVED4    0x8000
  76.  
  77. /*********************************************************************
  78. * If either of these structures are changed, don't forget to change  *
  79. * the BinkSched string in sched.c, as well as the routines that read *
  80. * and write the schedule file (read_sched, write_sched)!!!           *
  81. *********************************************************************/
  82. typedef struct _bink_event
  83. {
  84.     short minute;                /* Start of Event, minutes past 12AM */
  85.     short length;                /* Number of minutes event runs      */
  86.     short behavior;                /* Behavior mask                     */
  87.     short wait_time;            /* Avg seconds to wait between dials */
  88.     short node_cost;            /* Max cost node to call, this event */
  89.     short with_connect;            /* Number of calls to make w/carrier */
  90.     short no_connect;            /* Number of calls to make w/o DCD   */
  91.     unsigned char days;            /* Bit field for days to execute     */
  92.     char last_ran;                /* Day of month event last ran       */
  93.     unsigned long mailqsize;    /* Mail amount needed to make call   */
  94.     unsigned char errlevel[9];    /* Errorlevel exits                  */
  95.  
  96.     char cmd[32];                /* Chars to append to packer,        */
  97.                                 /* aftermail and cleanup             */
  98.     char month;                    /* Month when to do it               */
  99.     char day;                    /* Day of month to do it             */
  100.     char err_extent[6][4];        /* 3 byte ext's for errlvls 4-9      */
  101.     unsigned char faxerrlevel;    /* Exit for fax reception            */
  102.     unsigned char extra[3];        /* Extra space for later             */
  103. } BINK_EVENT, *BINK_EVENTP;
  104.  
  105. typedef struct _history
  106. {
  107.     short which_day;            /* Day number for this record        */
  108.     short bbs_calls;            /* Number of BBS callers             */
  109.     short mail_calls;            /* Number of mail calls              */
  110.     short calls_made;            /* Number of outgoing calls made     */
  111.     short connects;                /* Number of outbound call successes */
  112.     short files_in;                /* Number of files received          */
  113.     short files_out;            /* Number of files sent              */
  114.     short last_caller;            /* Type of last call                 */
  115.     ADDR last_addr;                /* Address of last, excl. Domain     */
  116.     char last_Domain[32];        /* Domain of last                    */
  117.     long last_Elapsed;            /* Time of last outbound session     */
  118.     ADDR next_addr;                /* Address of next, excl. Domain     */
  119.     char next_Domain[32];        /* Domain of next                    */
  120.     long callcost;                /* Cumulative of call costs          */
  121.     long size_in;                /* Size of files received            */
  122.     long time_in;                /* Time of files received            */
  123.     long err_in;                /* Errors while receiving files      */
  124.     long size_out;                /* Size of files sent                */
  125.     long time_out;                /* Time of files sent                */
  126.     long err_out;                /* Errors while sending files        */
  127. } HISTORY, *HISTORYP;
  128.  
  129.